import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:liuxlcommon/view/lxl_widget.dart';
import 'package:liuxlcommon/view/my_box.dart';
import 'package:love_newf/app/page/live/live_logic.dart';
import 'package:love_newf/generated/assets.dart';
import 'package:love_newf/value/app_const.dart';

class BottomOptionsPage extends StatefulWidget {
  const BottomOptionsPage({Key? key}) : super(key: key);

  @override
  State<BottomOptionsPage> createState() => _BottomOptionsPageState();
}

class _BottomOptionsPageState extends State<BottomOptionsPage> {
  LiveLogic logic = Get.find<LiveLogic>();

  @override
  Widget build(BuildContext context) {
    return LRow.eazy([
      10.lsw,
      LText.easy("说点什么吧...", 13.w, fw5, Colors.white)
          .align(Alignment.centerLeft)
          .flex(1)
          .bgColor(const Color(0x3B000000))
          .radius(30.w)
          .size(null, 40.w)
          .padding(left: 10.w)
          .onTapL(() {
        logic.showChatEditView();
      }),
      10.lsw,
      LImage.easy(Assets.liveBicGift, 40.w, 40.w).onTapL(() =>
          logic.sendGiftDialog.show(
              userId: logic.roomInfo.userRoomVO!.userId.toString(),
              headImg: logic.roomInfo.userRoomVO!.avatar)),
      8.lsw,
      LImage.easy(Assets.liveBicMsg, 40.w, 40.w),
      8.lsw,
      LImage.easy(Assets.liveBicShare, 40.w, 40.w),
      10.lsw,
    ]);
  }
}
